home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / nt4.0 server / DRVLIB.NIC / HPISA / OEMSETUP.INF < prev   
Encoding:
INI File  |  1996-07-31  |  34.9 KB  |  1,013 lines

  1. [Identify]
  2.     Debug-Output "HPISA: Identify."
  3.     read-syms Identification
  4.     set Status     = STATUS_SUCCESSFUL
  5.     set Identifier = $(OptionType)
  6.     set Media      = #("Source Media Descriptions", 1, 1)
  7.     Return $(Status) $(Identifier) $(Media)
  8.  
  9. [Identification]
  10.     OptionType = NetAdapter
  11. [PlatformsSupported]
  12.     ISA
  13.     EISA
  14.     "Jazz-Internal Bus"
  15. [Options]
  16. ;     HPISA
  17.      HP27245
  18.      HP27250
  19.      HP27247A
  20.      HP27247B
  21.      HP27252A
  22. [FileConstants]
  23. UtilityInf      = "UTILITY.INF"
  24. ParamInf        = "NCPARAM.INF"
  25. subroutineinf   = "SUBROUTN.INF"
  26. SoftwareType    = "driver"
  27. Exit_Code       = 0
  28. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  29. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  30. Manufacturer    = "Hewlett-Packard"
  31. ProductMajorVersion     = "3"
  32. ProductMinorVersion     = "1"
  33. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  34. ProductSoftwareName     = "Hpisa"
  35. ProductSoftwareTitle    = "HP 272xx PC LAN Driver"
  36. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\hpisa.sys"
  37. NetRuleSoftwareType     = "hpisaSys ndisDriver hpisaDriver"
  38. NetRuleSoftwareUse      = $(SoftwareType)
  39. NetRuleSoftwareBindForm = """HpisaSys"" yes no container"
  40. NetRuleSoftwareClass    = {"hpisaDriver basic"}
  41. NetRuleSoftwareBindable = {"hpisaDriver hpisaAdapter non exclusive 100"}
  42. ProductHardwareName     = "Hpisa"
  43. ;ProductHardwareHPISATitle = "HP 272xx PC LAN Adapters"
  44. ProductHardwareHP27245Title  = "HP 27245A"
  45. ProductHardwareHP27250Title  = "HP 27250"
  46. ProductHardwareHP27247ATitle = "HP 27247A"
  47. ProductHardwareHP27247BTitle = "HP 27247B"
  48. ProductHardwareHP27252ATitle = "HP 27252A"
  49. NetRuleHardwareType     = "hpisa hpisaAdapter"
  50. NetRuleHardwareBindForm = " yes yes container"
  51. NetRuleHardwareClass    = {"hpisaAdapter basic"}
  52. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  53. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  54. [GeneralConstants]
  55. from      = ""
  56. to        = ""
  57. ExitCodeOk     = 0
  58. ExitCodeCancel = 1
  59. ExitCodeFatal  = 2
  60. KeyNull         = ""
  61. MAXIMUM_ALLOWED   = 33554432
  62. RegistryErrorIndex = NO_ERROR
  63. KeyProduct      = ""
  64. KeyParameters   = ""
  65. TRUE            = 1
  66. FALSE           = 0
  67. NoTitle            = 0
  68. ExitState   = "Active"
  69. OldVersionExisted = $(FALSE)
  70. DriverPath      = $(!STF_NTPATH)\drivers
  71. [date]
  72.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  73.  
  74. [ReturnOptions]
  75.     Debug-Output "HPISA: ReturnOptions."
  76.     set Status        = STATUS_FAILED
  77.     set OptionList     = {}
  78.     set OptionTextList = {}
  79.     set LanguageList = ^(LanguagesSupported, 1)
  80.     Ifcontains(i) $($0) in $(LanguageList)
  81.         ifstr(i) $($1) == ""
  82.                         goto returnoptions
  83.         endif
  84.         set PlatformList = ^(PlatformsSupported, 1)
  85.         Ifcontains(i) $($1) in $(PlatformList)
  86.                         goto returnoptions
  87.         else
  88.                         set Status = STATUS_NOTSUPPORTED
  89.                         goto finish_ReturnOptions
  90.         endif
  91.     else
  92.                 set Status = STATUS_NOLANGUAGE
  93.                 goto finish_ReturnOptions
  94.     endif
  95. returnoptions = +
  96.     set OptionList     = ^(Options, 1)
  97.     set OptionTextList = ^(OptionsText$($0), 1)
  98.     set Status         = STATUS_SUCCESSFUL
  99.     Debug-Output "HPISA: ReturnOptions successful."
  100. finish_ReturnOptions = +
  101.     Return $(Status) $(OptionList) $(OptionTextList)
  102.  
  103. [InstallOption]
  104.     set Status   = STATUS_FAILED
  105.     set Option   = $($1)
  106.     set SrcDir   = $($2)
  107.     set AddCopy  = $($3)
  108.     set DoCopy   = $($4)
  109.     set DoConfig = $($5)
  110.     set LanguageList = ^(LanguagesSupported, 1)
  111.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  112.         Return STATUS_NOLANGUAGE
  113.     endif
  114.     set-subst LF = "\n"
  115.     read-syms GeneralConstants
  116.     read-syms FileConstants
  117.     read-syms DialogConstants$(!STF_LANGUAGE)
  118.     ifstr(i) $(!NTN_Origination) == "NCPA"
  119.         set Continue = "OK"
  120.     endif
  121.     read-syms FileConstants$(!STF_LANGUAGE)
  122.     detect date
  123.     set-title  $(FunctionTitle)
  124.     set to   = Begin
  125.     set from = Begin
  126.     set CommonStatus = STATUS_SUCCESSFUL
  127.     EndWait
  128. Begin = +
  129.     Set ActivateDetection = FALSE
  130.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  131.         set StartLabel = removeadapter
  132.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  133.         set StartLabel = UpgradeSoftware
  134.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  135.         set StartLabel = bindingadapter
  136.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  137. ;new
  138.         set CommonStatus = STATUS_REBOOT
  139.         set StartLabel = configureadapter
  140.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  141.             Debug-Output "Cannot configure the Hpisa driver software."
  142.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  143.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  144.                 Debug-Output "ShellCode error: cannot get an error string."
  145.                 goto ShellCodeError
  146.             endif
  147.             set Error = $($R0)
  148.             set from = end
  149.             set to = end
  150.             goto nonfatalinfo
  151.         endif
  152.     else
  153.         set StartLabel = installadapter
  154.         set OEM_ABANDON_OPTIONS = {}
  155.         set OEM_ABANDON_SOFTWARE = FALSE
  156.         set OEM_ABANDON_ON = TRUE
  157.     endif
  158.     Debug-Output "OEMSETUP.INF: =================================================="
  159.     Debug-Output "OEMSETUP.INF: STF_CWDIR is: "$(!STF_CWDIR)
  160.     Debug-Output "OEMSETUP.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  161.     Debug-Output "OEMSETUP.INF: Option is: "$(Option)
  162.     Debug-Output "OEMSETUP.INF: =================================================="
  163.     Set DetectedCard = FALSE
  164.     Goto $(StartLabel)
  165. installadapter = +
  166.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  167.     Ifstr $(KeyProduct) != $(KeyNull)
  168.         CloseRegKey $(KeyProduct)
  169.         ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  170.            Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  171.                $(ProductVersion)
  172.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  173.                Debug-Output "ShellCode error: cannot get an error string."
  174.                goto ShellCodeError
  175.            endif
  176.            goto end
  177.         else
  178.            Shell $(UtilityInf), CardExistedDlg
  179.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  180.                Debug-Output "ShellCode error: cannot get an error string."
  181.                goto ShellCodeError
  182.            endif
  183.            ifstr(i) $($R1) != "OK"
  184. ;new
  185.                set CommonStatus = STATUS_USERCANCEL
  186.                goto end
  187.            endif
  188.            set OldVersionExisted = $(TRUE)
  189.         endif
  190.     endif
  191.     Set CurrParamSettings = {}
  192.     set   OldSource =  $(!STF_SRCDIR)
  193.     Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(!STF_SRCDIR)
  194.     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  195.           Goto fatal
  196.     Else-Ifstr(i) $($R0) == STATUS_FAILED
  197.           Goto fatal
  198.     Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  199.           Goto installstep1
  200.     Endif
  201.     Set !STF_SRCDIR = $($R1)
  202.     install "Install-Dll"
  203.     Set !STF_SRCDIR = $(OldSource)
  204. ;Set Defaults
  205.     set IRQValue = *($(IRQList), $($(Option)IRQDefault))
  206.     set IOBaseAddrValue = *($(IOBaseAddrList), $($(Option)IOBaseAddrDefault))
  207.     set MemoryMapValue = *($(MemoryMapList), $($(Option)MemoryMapDefault))
  208.     Goto adaptersetup
  209. configureadapter = +
  210.     Ifstr $(KeyProduct) == $(KeyNull)
  211.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
  212.         Ifstr $(KeyProduct) == $(KeyNull)
  213.             set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  214.             Debug-Output "Cannot find component product key"
  215.             goto fatalregistry
  216.         Endif
  217.     Endif
  218.     Debug-Output "INF: Shelling to FindService"
  219.     Shell $(UtilityInf) FindService, $(KeyProduct)
  220.     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  221.         Debug-Output "INF: FindService shell failure"
  222.         Goto ShellCodeError
  223.     Endif
  224.     Ifstr(i) $($R0) != NO_ERROR
  225.         Debug-Output "INF: FindService Shell error: "$($R0)
  226.         Goto fatalregistry
  227.     endif
  228.     Set KeyParameters = $($R2)
  229.     CloseRegKey $($R1)
  230.     Ifstr $(KeyParameters) == $(KeyNull)
  231.         set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  232.         Debug-Output "Cannot find component service"
  233.         goto fatalregistry
  234.     endif
  235.     set OldVersionExisted = $(TRUE)
  236.     set ValueName = ""
  237.     set ValueData = ""
  238.     set ValueStr  = ""
  239.     set ValueList = {}
  240.     EnumRegValue $(KeyParameters) ValueList
  241.  
  242.     ForListDo $(ValueList)
  243.     set ValueItem = $($)
  244.     set ValueName = *($(ValueItem),1)
  245.     set ValueData = *($(ValueItem),4)
  246.     ifstr(i) $(ValueName) == "InterruptNumber"
  247.         set IRQValueIndex = $(ValueData)
  248.     else-ifstr(i) $(ValueName) == "IoBaseAddress"
  249.         set IOBaseAddrIndex = $(ValueData)
  250.         else-ifstr(i) $(ValueName) == "MemoryMappedBaseAddress"
  251.         set MemoryMapIndex = $(ValueData)
  252.     endif
  253.  
  254.     EndForListDo
  255.  
  256.     set IRQValue = *($(IRQList), ~($(IRQValues),$(IRQValueIndex)))
  257.     ifstr(i) $(IRQValue) == ""
  258.     set IRQValue = *($(IRQList), 2)
  259.     endif
  260.  
  261.  
  262.     set MemoryMapValue = *($(MemoryMapList), ~($(MemoryMapValues),$(MemoryMapIndex)))
  263.     ifstr(i) $(MemoryMapValue) == ""
  264.     set MemoryMapValue = *($(MemoryMapList), 2)
  265.     endif
  266.  
  267.  
  268.     set IOBaseAddrValue = *($(IOBaseAddrList), ~($(IOBaseAddrValues),$(IOBaseAddrIndex)))
  269.  
  270.     ifstr(i) $(IOBaseAddrValue) == ""
  271.     set IOBaseAddrValue = *($(IOBaseAddrList), 1)
  272.     endif
  273.  
  274. adaptersetup = +
  275.     Shell "" DebugConfiguration "before displaying dialog"
  276.     Set from = adapteroptions
  277.     goto adapteroptions
  278. adapteroptions = +
  279.     read-syms FileDependentDlg$(!STF_LANGUAGE)
  280.     SetHelpFile "hpisa.hlp" $(MinID) $(MaxID)
  281.     ui start "InputDlg" 
  282.  
  283.     ifstr(i) $(DLGEVENT) == "CONTINUE"
  284.                 set IRQValueIndex = $(Combo1Out)
  285.                 set IOBaseAddrIndex = $(Combo2Out)
  286.                 set MemoryMapIndex = $(Combo3Out)
  287.                 ui pop 1
  288.                 goto nextstep
  289.     else-ifstr(i) $(DLGEVENT) == "BACK"
  290.                 set CommonStatus = STATUS_USERCANCEL
  291.                 Debug-Output "Action: exit. Bye."
  292.                 ui pop 1
  293.                 goto end
  294.     else
  295.                 ui pop 1
  296.                 Debug-Output "Action: unknown. Bye."
  297.                 goto end
  298.     endif
  299. nextstep = +
  300.     Shell "" DebugConfiguration "after running dialog"
  301.     Set from = adapteroptions
  302.     Set to = skipoptions
  303.     goto skipoptions
  304. skipoptions =+
  305.     ifint $(OldVersionExisted) == $(TRUE)
  306.         ifstr(i) $(!NTN_InstallMode) == configure
  307.             goto writeparameters
  308.         endif
  309.     endif
  310.     StartWait
  311.     ifint $(OldVersionExisted) == $(FALSE)
  312.         ifstr(i) $(!NTN_InstallMode) == "install"
  313.            Ifstr(i) $(DoCopy) == "YES"
  314.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  315.               Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  316.                   Goto ShellCodeError
  317.               Else-Ifstr(i) $($R0) == STATUS_FAILED
  318.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  319.                   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  320.                       goto ShellCodeError
  321.                   endif
  322.                   set Error = $($R0)
  323.                   Goto fatal
  324.               Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  325.                   Goto successful
  326.               Endif
  327.               Set SrcDir = $($R1)
  328.            Endif
  329.            install "Install-Option"
  330.            ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  331.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  332.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  333.                   goto ShellCodeError
  334.               endif
  335.               set Error = $($R0)
  336.               goto fatal
  337.            endif
  338.         endif
  339.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  340.             $(ProductSoftwareName), +
  341.             $(ProductSoftwareName), +
  342.             $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  343.             $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  344.             $(NetEventDLL)
  345.         Set OEM_ABANDON_SOFTWARE = TRUE
  346.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  347.             Debug-Output "ShellCode error"
  348.             goto ShellCodeError
  349.         endif
  350.         set RegistryErrorIndex = $($R0)
  351.         set KeyProduct      = $($R1)
  352.         Set SoftNetRulesKey = $($R2)
  353.         CloseRegKey $($R3)
  354.         CloseRegKey $($R4)
  355.         CloseRegKey $($R5)
  356.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  357.             EndWait
  358.             Debug-Output "Registry error: add software components"
  359.             CloseRegKey $(KeyProduct)
  360.             CloseRegKey $(SoftNetRulesKey)
  361.             goto fatalregistry
  362.         endif
  363.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  364.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  365.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  366.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  367.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  368.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  369.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  370.         Shell  $(UtilityInf), AddValueList, $(KeyProduct), $(NewValueList)
  371.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  372.             Debug-Output "ShellCode error."
  373.             goto ShellCodeError
  374.         endif
  375.         set RegistryErrorIndex = $($R0)
  376.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  377.             EndWait
  378.             Debug-Output "Registry error: add value list."
  379.             CloseRegKey $(KeyProduct)
  380.             CloseRegKey $(SoftNetRulesKey)
  381.             goto fatalregistry
  382.         endif
  383.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  384.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  385.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  386.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  387.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  388.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  389.         Shell  $(UtilityInf), AddValueList, $(SoftNetRulesKey), $(NewValueList)
  390.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  391.             Debug-Output "ShellCode error."
  392.             goto ShellCodeError
  393.         endif
  394.         set RegistryErrorIndex = $($R0)
  395.         CloseRegKey $(KeyProduct)
  396.         CloseRegKey $(SoftNetRulesKey)
  397.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  398.             EndWait
  399.             Debug-Output "Registry error: add value list."
  400.             goto fatalregistry
  401.         endif
  402.     endif
  403.     Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  404.     ifint $($R4) != -1
  405.         Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  406.     endif
  407.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  408.         Debug-Output "Cannot add hardware component"
  409.         goto ShellCodeError
  410.     endif
  411.     set RegistryErrorIndex = $($R0)
  412.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  413.         EndWait
  414.         Debug-Output "Registry error: add hardware component"
  415.         CloseRegKey $($R1)
  416.         CloseRegKey $($R2)
  417.         CloseRegKey $($R3)
  418.         goto fatalregistry
  419.     endif
  420.     set KeyParameters = $($R3)
  421.     set KeyAdapterRules = $($R2)
  422.     set AdapterNumber = $($R4)
  423.     set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  424.                        {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+
  425.                        {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
  426.                        {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  427.                        {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  428.                        {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  429.     Shell  $(UtilityInf), AddValueList, $($R1), $(NewValueList)
  430.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  431.         Debug-Output "ShellCode error"
  432.         goto ShellCodeError
  433.     endif
  434.     CloseRegKey $($R1)
  435.     set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  436.     set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  437.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  438.                         {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  439.                         {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  440.                         {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  441.     Shell  $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  442.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  443.         Debug-Output "ShellCode error."
  444.         goto ShellCodeError
  445.     endif
  446.     set RegistryErrorIndex = $($R0)
  447.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  448.         EndWait
  449.         Debug-Output "Registry error: add value list."
  450.         CloseRegKey $(KeyParameters)
  451.         CloseRegKey $(KeyAdapterRules)
  452.         goto fatalregistry
  453.     endif
  454.     CloseRegKey $(KeyAdapterRules)
  455.     goto writeparameters
  456. writeparameters = +
  457.     Shell $(UtilityInf), GetBusTypeNum
  458.     set BusTypeNum = $($R1)
  459.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  460.         Debug-Output "ShellCode error."
  461.         goto ShellCodeError
  462.     endif
  463.  
  464. ;NOTE: no Bus Number is included. How do you get this for ISA?
  465. ;FIX: New code to fix BusNumber problem
  466.     set BusNumber = 0
  467. ;        $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  468.  
  469.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_SoftwareBase)"\Microsoft\Windows Nt\CurrentVersion" $(MAXIMUM_ALLOWED) KeyNt
  470. ;    OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows Nt\CurrentVersion" $(!REG_KEY_READ) KeyNt
  471.     Ifstr(i) $(KeyNt) != ""
  472.         GetRegValue $(KeyNt) "CurrentVersion" CurVerValue
  473.         Set CurVer = *($(CurVerValue),4)
  474.         Debug-Output "OEMSETUP.INF: NT Version retrieved is "$(CurVer)
  475.         CloseRegKey $(KeyNt)
  476.     Endif
  477.  
  478.     Ifstr(i) $(CurVer) == ""
  479.       Debug-Output "OEMSETUP.INF: Set BusNumber = 0 "
  480.       Set BusNumber = 0
  481.     Else
  482.       Ifstr(i) $(CurVer) == "3.1"
  483.         Debug-Output "OEMSETUP.INF: Set BusNumber = 0 "
  484.         Set BusNumber = 0
  485.       else
  486.         Debug-Output "OEMSETUP.INF: Shell out for BusNumber"
  487.         Shell $(UtilityInf),GetBusTypeDialog,$(ProductHardware$(Option)Description) $(BusTypeNum) $(BusNumber)
  488.       endif
  489.     Endif
  490.  
  491. ;    set BusNumber = 0
  492. ;    Shell $(UtilityInf),GetBusTypeDialog,$(ProductHardware$(Option)Description) $(BusTypeNum) $(BusNumber)
  493. ;FIX END
  494.  
  495.  
  496.  
  497.  
  498.     set MemoryMapValue = *($(MemoryMapValues), ~($(MemoryMapList),$(MemoryMapIndex)))
  499.  
  500.     set IRQValue = *($(IRQValues), ~($(IRQList),$(IRQValueIndex)))
  501.  
  502.     set IOBaseAddrValue = *($(IOBaseAddrValues), ~($(IOBaseAddrList),$(IOBaseAddrIndex)))
  503.  
  504.     Set NewValueList = {{InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQValue)},+
  505.                        {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  506.                        {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
  507.                        {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  508.                        {MemoryMappedBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(MemoryMapValue)},+
  509.                        {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)}}
  510.     Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  511.     CloseRegKey $(KeyParameters)
  512.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  513.         Debug-Output "ShellCode error."
  514.         goto ShellCodeError
  515.     endif
  516.     set RegistryErrorIndex = $($R0)
  517.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  518.         Debug-Output "Registry error: Add value list"
  519.         goto fatalregistry
  520.     endif
  521.     EndWait
  522.     goto successful
  523. bindingadapter =+
  524.     set Error = "Binding: Sorry, not yet implemented."
  525.     goto fatal
  526. removeadapter = +
  527.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  528.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  529.             $(ProductSoftwareName)
  530.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  531.             Debug-Output "ShellCode error"
  532.             goto ShellCodeError
  533.         endif
  534.         set RegistryErrorIndex = $($R0)
  535.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  536.             goto fatalregistry
  537.         endif
  538.     else
  539.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  540.             $(ProductSoftwareName), $(!NTN_RegBase)
  541.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  542.             Debug-Output "ShellCode error"
  543.             goto ShellCodeError
  544.         endif
  545.         set RegistryErrorIndex = $($R0)
  546.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  547.             goto fatalregistry
  548.         endif
  549.     endif
  550.     goto end
  551. UpgradeSoftware = +
  552. ;This section has some extra stuff at the front
  553.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  554.         OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  555.         Ifstr $(KeyProduct) != $(KeyNull)
  556.             GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  557.             set Version = *($(VersionInfo), 4)
  558.             Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  559.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  560.                 Debug-Output "ShellCode error"
  561.                 goto ShellCodeError
  562.             endif
  563.             set !UG_Filename = $($R0)
  564.             ifstr(i) $(!UG_Filename) != ""
  565.                 install "Install-Update"
  566.                 ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  567.                     goto fatal
  568.                 endif
  569.             endif
  570.             SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  571.             SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  572. ;Is this 'ifint' doing anything?
  573.             ifint $(Version) != $(ProductVersion)
  574.             endif
  575.             CloseRegKey $(KeyProduct)
  576.         else
  577.             goto fatalregistry
  578.         endif
  579.     else
  580.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
  581.               $(MAXIMUM_ALLOWED) NetworkCardKey
  582.         Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  583.             GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  584.             set ServiceName = *($(ServiceNameInfo), 4)
  585.             OpenRegKey $(NetworkCardKey) "" "NetRules" +
  586.                 $(MAXIMUM_ALLOWED) NetRuleKey
  587.             Ifstr(i) $(NetRuleKey) != $(KeyNull)
  588.             else
  589.                 goto fatalregistry
  590.             endif
  591.             CloseRegKey $(NetRules)
  592.             CloseRegKey $(NetworkCardKey)
  593.         else
  594.             goto fatalregistry
  595.         endif
  596.         OpenRegKey $(!REG_H_LOCAL) "" +
  597.               $(!NTN_ServiceBase)"\"$(ServiceName) +
  598.               $(MAXIMUM_ALLOWED) ServiceKey
  599.         Ifstr(i) $(ServiceKey) != $(KeyNull)
  600.             CloseRegKey $(ServiceKey)
  601.         else
  602.             goto fatalregistry
  603.         endif
  604.     endif
  605.     goto end
  606. successful = +
  607.     goto end
  608. abandon = +
  609.     ForListDo $(OEM_ABANDON_OPTIONS)
  610.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  611.             $(ProductSoftwareName), $($)
  612.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  613.             Debug-Output "ShellCode error"
  614.             goto ShellCodeError
  615.         endif
  616.         set RegistryErrorIndex = $($R0)
  617.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  618.             goto fatalregistry
  619.         endif
  620.     EndForListDo
  621.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  622.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  623.             $(ProductSoftwareName), FALSE
  624.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  625.             Debug-Output "ShellCode error"
  626.             goto ShellCodeError
  627.         endif
  628.         set RegistryErrorIndex = $($R0)
  629.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  630.             goto fatalregistry
  631.         endif
  632.     endif
  633.     goto end
  634. warning = +
  635.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  636.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  637.         goto ShellCodeError
  638.     endif
  639.     ifstr(i) $($R1) == "OK"
  640.         goto $(to)
  641.     else-ifstr(i) $($R1) == "CANCEL"
  642.         goto $(from)
  643.     else
  644.         goto "end"
  645.     endif
  646. nonfatalinfo = +
  647.     Set Severity = STATUS
  648.     Set CommonStatus = STATUS_USERCANCEL
  649.     goto nonfatalmsg
  650. nonfatal = +
  651.     Set Severity = NONFATAL
  652.     goto nonfatalmsg
  653. nonfatalmsg = +
  654.     ifstr(i) $(Error) == ""
  655.         Set Severity = NONFATAL
  656.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  657.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  658.             goto ShellCodeError
  659.         endif
  660.         set Error = $($R0)
  661.     endif
  662.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  663.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  664.         goto ShellCodeError
  665.     endif
  666.     ifstr(i) $($R1) == "OK"
  667.         goto $(from)
  668.     else
  669.         goto "end"
  670.     endif
  671. fatalregistry = +
  672.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  673.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  674.         goto ShellCodeError
  675.     endif
  676.     set Error = $($R0)
  677.     goto fatal
  678. fataldetect = +
  679.     Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
  680.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  681.         Debug-Output "ShellCode error: cannot get an error string."
  682.         goto ShellCodeError
  683.     endif
  684.     set Error = $($R0)
  685.     Goto fatal
  686. fatal = +
  687.     ifstr(i) $(Error) == ""
  688.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  689.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  690.             goto ShellCodeError
  691.         endif
  692.         set Error = $($R0)
  693.     endif
  694.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  695.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  696.         goto ShellCodeError
  697.     endif
  698.     goto setfailed
  699. ShellCodeError = +
  700.     set DlgType      = "MessageBox"
  701. ;NOTE: The following 2 statements are different
  702.     set STF_MB_TITLE = "Error: "$(FunctionTitle)
  703.     set STF_MB_TEXT  = "Shell Code Error"
  704.     set STF_MB_TYPE  = 1
  705.     set STF_MB_ICON  = 3
  706.     set STF_MB_DEF   = 1
  707.     ui start "Error Message"
  708.     goto setfailed
  709. setfailed = +
  710.     set CommonStatus = STATUS_FAILED
  711.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  712.         set OEM_ABANDON_ON = FALSE
  713.         goto abandon
  714.     endif
  715.     goto end
  716. end = +
  717.     goto term
  718. term = +
  719.     Return $(CommonStatus)
  720. [DebugConfiguration]
  721.     Set InfName = "OEMSETUP.INF"
  722.     Debug-Output $(InfName)" **CONFIGURATION STATE: "$($0)
  723. ;    Debug-Output $(InfName)" IRQ_Level is "$(!p:IRQ_Level)
  724.     Debug-Output $(InfName)" IRQLevel is "$(!p:IRQValue)
  725.     Debug-Output $(InfName)" IOBaseAddrValue is "$(!p:IOBaseAddrValue)
  726.     Debug-Output $(InfName)" MemoryMappedBaseAddr is "$(!p:MemoryMapValue)
  727.     return
  728. [Install-Option]
  729.     set STF_VITAL = ""
  730.     ifstr(i) $(AddCopy) == "YES"
  731.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  732.     endif
  733.     ifstr(i) $(DoCopy) == "YES"
  734.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  735.        CopyFilesInCopyList
  736.     endif
  737.     Exit
  738. [Install-Update]
  739.    set STF_VITAL        = ""
  740.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  741.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  742. ;NOTE: The next 3 lines are different
  743.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  744.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  745.    CopyFilesInCopyList
  746.    exit
  747.  
  748. [Install-Dll]
  749.    set STF_VITAL        = ""
  750.    AddSectionFilesToCopyList Files-Dll $(!STF_SRCDIR) $(!STF_WINDOWSSYSPATH)
  751.    CopyFilesInCopyList
  752.    exit
  753.  
  754. [Source Media Descriptions]
  755.     1  = "HP Driver Support Disk"  
  756.  
  757. [Signature]
  758.     FileType = MICROSOFT_DRVLIB_FILE
  759. [GetSignature]
  760.     read-syms Signature
  761.     return $(FileType)
  762.  
  763. [ProductType]
  764. STF_PRODUCT  = Winnt
  765. STF_PLATFORM = I386
  766. [Files-Inf]
  767. 1,    oemsetup.inf,     SIZE=39691,    RENAME=$(!UG_Filename)
  768. [Files-HP27245]
  769. 1, hpisa.sys , SIZE=81920
  770. [Files-HP27250]
  771. 1, hpisa.sys , SIZE=81920
  772. [Files-HP27247A]
  773. 1, hpisa.sys , SIZE=81920
  774. [Files-HP27247B]
  775. 1, hpisa.sys , SIZE=81920
  776. [Files-HP27252A]
  777. 1, hpisa.sys , SIZE=81920
  778. [Files-Hpisa]
  779. 1, hpisa.sys , SIZE=81920
  780. [Files-Dll]
  781. 1, Hpisa.hlp,     SIZE=5114
  782. [LanguagesSupported]
  783.     ENG
  784. [OptionsTextENG]
  785. ;    HPISA      = "HP 27245, 27247, and 27252 PC LAN Adapters"
  786.      HP27245   = "HP 27245A PC LAN Adapter/8 TP"
  787.      HP27250   = "HP 27250 PC LAN Adapter/8 TL"
  788.      HP27247A   = "HP 27247A PC LAN Adapter/16 TP"
  789.      HP27247B   = "HP 27247B PC LAN Adapter/16 TP Plus"
  790.      HP27252A   = "HP 27252A PC LAN Adapter/16 TL Plus"
  791. [FileConstantsENG]
  792. ProCaption   = "Windows NT Setup"
  793. ProCancel    = "Cancel"
  794. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  795.                "Are you sure you want to cancel copying files?"
  796. ProCancelCap = "Network Setup Message"
  797. ProText1     = "Copying:"
  798. ProText2     = "To:"
  799.  
  800. ;FunctionTitle   = "HP 272(45/47/50/52) PC LAN Adapter Setup"
  801. HP27245FunctionTitle    = "HP 27245A PC LAN Adapter/8 TP Setup"
  802. HP27250FunctionTitle    = "HP 27250 PC LAN Adapter/8 TL Setup"
  803. HP27247AFunctionTitle   = "HP 27247A PC LAN Adapter/16 TP Setup"
  804. HP27247BFunctionTitle   = "HP 27247B PC LAN Adapter/16 TP Plus Setup"
  805. HP27252AFunctionTitle   = "HP 27252A PC LAN Adapter/16 TL Plus Setup"
  806. ProductSoftwareDescription = "HP 272xx PC LAN Adapter Driver"
  807. ProductHardwareHP27245Description  = "HP 27245A PC LAN Adapter/8 TP"
  808. ProductHardwareHP27250Description  = "HP 27250 PC LAN Adapter/8 TL"
  809. ProductHardwareHP27247ADescription = "HP 27247A PC LAN Adapter/16 TP"
  810. ProductHardwareHP27247BDescription = "HP 27247B PC LAN Adapter/16 TP Plus"
  811. ProductHardwareHP27252ADescription = "HP 27252A PC LAN Adapter/16 TL Plus"
  812. ProductHardwareHpisaDescription = "HP 272(45/47/50/52) PC LAN Adapters"
  813. FunctionTitle   = $($(Option)FunctionTitle)
  814. IRQList  = ^($(Option)IRQChoices, 1)
  815. IRQValues = ^($(Option)IRQChoices, 2)
  816. IOBaseAddrList = ^($(Option)IOBaseAddrChoices, 1)
  817. IOBaseAddrValues = ^($(Option)IOBaseAddrChoices, 2)
  818. MemoryMapList = ^($(Option)MemoryMapChoices,1)
  819. MemoryMapValues = ^($(Option)MemoryMapChoices,2)
  820. HP27245IRQDefault = 2
  821. HP27245IOBaseAddrDefault = 5
  822. HP27245MemoryMapDefault = 1
  823. HP27247AIRQDefault = 2
  824. HP27247AIOBaseAddrDefault = 5
  825. HP27247AMemoryMapDefault = 1
  826. HP27247BIRQDefault = 1
  827. HP27247BIOBaseAddrDefault = 17
  828. HP27247BMemoryMapDefault = 1
  829. HP27250IRQDefault = 2
  830. HP27250IOBaseAddrDefault = 5
  831. HP27250MemoryMapDefault = 1
  832. HP27252AIRQDefault = 1
  833. HP27252AIOBaseAddrDefault = 17
  834. HP27252AMemoryMapDefault = 1
  835. [DialogConstantsENG]
  836. Help        = "&Help"
  837. Exit        = "Cancel"
  838. OK          = "OK"
  839. HelpContext = ""
  840. Continue    = "Continue"
  841. Cancel      = "Cancel"
  842. [MemoryMappedChoicesENG]
  843. Map_1 = 1, "ON"
  844. Map_2 = 0, "OFF"
  845. [FileDependentDlgENG]
  846. DlgType = "Combination"
  847. DlgTemplate = "UBNDIS"
  848. Caption = $(FunctionTitle)
  849. DlgText = "Please select values for the following fields:"
  850. Label1 = "&Interrupt Channel:"
  851. Label2 = "&Base I/O Address:"
  852. Label3 = "&Memory Base Address:"
  853. Combo1List = $(IRQList)
  854. Combo1Out  = $(IRQValue)
  855. Combo2List = $(IOBaseAddrList)
  856. Combo2Out  = $(IOBaseAddrValue)
  857. Combo3List = $(MemoryMapList)
  858. Combo3Out  = $(MemoryMapValue)
  859. ComboListItemsIn  = {Combo1List, Combo2List, Combo3List}
  860. ComboListItemsOut = {Combo1Out, Combo2Out, Combo3Out}
  861. EditTextIn = ""
  862. EditTextLim = ""
  863. CBOptionsGreyed = {}
  864. NotifyFields = {NO, NO}
  865. ;New Help stuff
  866. MinID = 1
  867. MaxID = 6000
  868. HelpContext = 5100
  869. [HP27245IRQChoices]
  870. IRQ_1 = "2",2
  871. IRQ_2 = "3",3
  872. IRQ_3 = "4",4
  873. IRQ_4 = "5",5
  874. IRQ_5 = "7",7
  875. [HP27250IRQChoices]
  876. IRQ_1 = "2",2
  877. IRQ_2 = "3",3
  878. IRQ_3 = "4",4
  879. IRQ_4 = "5",5
  880. IRQ_5 = "7",7
  881. [HP27247AIRQChoices]
  882. IRQ_1 = "2",2
  883. IRQ_2 = "3",3
  884. IRQ_3 = "4",4
  885. IRQ_4 = "5",5
  886. IRQ_5 = "7",7
  887. IRQ_7 = "10",10
  888. IRQ_8 = "11",11
  889. [HP27247BIRQChoices]
  890. IRQ_1 = "3",3
  891. IRQ_2 = "4",4
  892. IRQ_3 = "5",5
  893. IRQ_4 = "6",6
  894. IRQ_5 = "7",7
  895. IRQ_6 = "9",9
  896. IRQ_7 = "10",10
  897. IRQ_8 = "11",11
  898. IRQ_9 = "12",12
  899. IRQ_10 = "15",15
  900. [HP27252AIRQChoices]
  901. IRQ_1 = "3",3
  902. IRQ_2 = "4",4
  903. IRQ_3 = "5",5
  904. IRQ_4 = "6",6
  905. IRQ_5 = "7",7
  906. IRQ_6 = "9",9
  907. IRQ_7 = "10",10
  908. IRQ_8 = "11",11
  909. IRQ_9 = "12",12
  910. IRQ_10 = "15",15
  911. [HP27245IOBaseAddrChoices]
  912. IOBase_1  = "0x200",512
  913. IOBase_2  = "0x240",576
  914. IOBase_3  = "0x280",640
  915. IOBase_4  = "0x2c0",704
  916. IOBase_5  = "0x300",768
  917. IOBase_6  = "0x320",800
  918. IOBase_7  = "0x340",832
  919. [HP27250IOBaseAddrChoices]
  920. IOBase_1  = "0x200",512
  921. IOBase_2  = "0x240",576
  922. IOBase_3  = "0x280",640
  923. IOBase_4  = "0x2c0",704
  924. IOBase_5  = "0x300",768
  925. IOBase_6  = "0x320",800
  926. IOBase_7  = "0x340",832
  927. [HP27247AIOBaseAddrChoices]
  928. IOBase_1  = "0x200",512
  929. IOBase_2  = "0x240",576
  930. IOBase_3  = "0x280",640
  931. IOBase_4  = "0x2c0",704
  932. IOBase_5  = "0x300",768
  933. IOBase_6  = "0x320",800
  934. IOBase_7  = "0x340",832
  935. [HP27247BIOBaseAddrChoices]
  936. IOBase_1  = "0x100",256
  937. IOBase_2  = "0x120",288
  938. IOBase_3  = "0x140",320
  939. IOBase_4  = "0x160",352
  940. IOBase_5  = "0x180",384
  941. IOBase_6  = "0x1a0",416
  942. IOBase_7  = "0x1c0",448
  943. IOBase_8  = "0x1e0",480
  944. IOBase_9  = "0x200",512
  945. IOBase_10  = "0x220",544
  946. IOBase_11  = "0x240",576
  947. IOBase_12  = "0x260",608
  948. IOBase_13  = "0x280",640
  949. IOBase_14  = "0x2a0",672
  950. IOBase_15  = "0x2c0",704
  951. IOBase_16  = "0x2e0",736
  952. IOBase_17  = "0x300",768
  953. IOBase_18  = "0x320",800
  954. IOBase_19  = "0x340",832
  955. IOBase_20  = "0x360",864
  956. IOBase_21  = "0x380",896
  957. IOBase_22  = "0x3a0",928
  958. IOBase_23  = "0x3c0",960
  959. [HP27252AIOBaseAddrChoices]
  960. IOBase_1  = "0x100",256
  961. IOBase_2  = "0x120",288
  962. IOBase_3  = "0x140",320
  963. IOBase_4  = "0x160",352
  964. IOBase_5  = "0x180",384
  965. IOBase_6  = "0x1a0",416
  966. IOBase_7  = "0x1c0",448
  967. IOBase_8  = "0x1e0",480
  968. IOBase_9  = "0x200",512
  969. IOBase_10  = "0x220",544
  970. IOBase_11  = "0x240",576
  971. IOBase_12  = "0x260",608
  972. IOBase_13  = "0x280",640
  973. IOBase_14  = "0x2a0",672
  974. IOBase_15  = "0x2c0",704
  975. IOBase_16  = "0x2e0",736
  976. IOBase_17  = "0x300",768
  977. IOBase_18  = "0x320",800
  978. IOBase_19  = "0x340",832
  979. IOBase_20  = "0x360",864
  980. IOBase_21  = "0x380",896
  981. IOBase_22  = "0x3a0",928
  982. IOBase_23  = "0x3c0",960
  983. [HP27245MemoryMapChoices]
  984. MemoryMap_1 = "I/O Mode",0
  985. [HP27250MemoryMapChoices]
  986. MemoryMap_1 = "I/O Mode",0
  987. [HP27247AMemoryMapChoices]
  988. MemoryMap_1 = "I/O Mode",0
  989. [HP27247BMemoryMapChoices]
  990. MemoryMap_1 = "I/O Mode",0
  991. MemoryMap_2 = "0xC8000",819200
  992. MemoryMap_3 = "0xCC000",835584
  993. MemoryMap_4 = "0xD0000",851968
  994. MemoryMap_5 = "0xD4000",868352
  995. MemoryMap_6 = "0xD8000",884736
  996. MemoryMap_7 = "0xDC000",901120
  997. MemoryMap_8 = "0xE0000",917504
  998. MemoryMap_9 = "0xE4000",933888
  999. MemoryMap_10 = "0xE8000",950272
  1000. MemoryMap_11 = "0xEC000",966656
  1001. [HP27252AMemoryMapChoices]
  1002. MemoryMap_1 = "I/O Mode",0
  1003. MemoryMap_2 = "0xC8000",819200
  1004. MemoryMap_3 = "0xCC000",835584
  1005. MemoryMap_4 = "0xD0000",851968
  1006. MemoryMap_5 = "0xD4000",868352
  1007. MemoryMap_6 = "0xD8000",884736
  1008. MemoryMap_7 = "0xDC000",901120
  1009. MemoryMap_8 = "0xE0000",917504
  1010. MemoryMap_9 = "0xE4000",933888
  1011. MemoryMap_10 = "0xE8000",950272
  1012. MemoryMap_11 = "0xEC000",966656
  1013.